<?php
global $dktmSetting;
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content after
 *
 * @package Ending Credits
 */
?>

</div><!-- #main -->

<footer id="colophon" role="contentinfo">
    <div class="newsletter">
        <div class="wrapper">
            <div class="newslet">
                <form action="http://directionkathmandu.us8.list-manage.com/subscribe/post?u=d773f7931b2ff54513d75b499&amp;id=6d5c7bf4f4" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
                    <input type="text" name="EMAIL" class="required email" placeholder="Newsletter Email: Enter Your Email Address">
                    <button type="submit"><img src="<?php echo get_template_directory_uri(); ?>/images/newsletter-btn.png" alt=""></button>
                </form>
            </div>
        </div>
    </div><div class="clear"></div>
    <div class="wrapper">
        <?php get_sidebar('footer'); //dynamic_sidebar( "Footer" ); ?>
        <div class="clear"></div>
        <div class="copyright">
            <aside class="owner"><p><?php echo @$dktmSetting['copyright']; ?> | </p>
                <?php dktm_footer_nav(); ?>
            </aside>
            <aside class="design">Design: <a href="http://rs3solutions.com.np" target="_blank">Rs3solutions</a></aside>
            <div class="clear"></div>
        </div>
    </div>
    <!-- <div id="site-generator">
    <?php do_action('ec_credits'); ?>
            <a href="<?php echo esc_url(__('http://wordpress.org/', 'ec')); ?>" title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'ec'); ?>" rel="generator"><?php printf(__('Proudly powered by %s', 'ec'), 'WordPress'); ?></a>
            
            
    </div> -->
    <div class="login-pop">
        <img src="<?php echo get_template_directory_uri(); ?>/images/icon_close.png" alt="" class="close">
        <form action="">
            <h1>Login</h1>
            <input type="text" placeholder="User name"> <br>
            <input type="password" placeholder="Password"> <br>
            <input type="submit" value="Login">
        </form>
        <?php dynamic_sidebar("Login Popup"); ?>
    </div>
    <div class="bg"></div>
</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>
<script>
    jQuery(document).ready(function($) {
        $(".datepicker_start_date").datepicker({
                dateFormat: 'yy-mm-dd',
                showAnim: 'fadeIn',
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                showButtonPanel: true,
                minDate: 0,
                onSelect: function(selected) {
                    $(".datepicker_end_date").datepicker("option", "minDate", selected);
                    $('.datepicker_start_date').val(selected);
                    console.log(selected);
                }
            });
        
        $(".datepicker_end_date").datepicker({
                dateFormat: 'yy-mm-dd',
                showAnim: 'fadeIn',
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                showButtonPanel: true,
                minDate: 0,
                onSelect: function(selected) {
                    $(".datepicker_start_date").datepicker("option", "maxDate", selected);
                    $('.datepicker_end_date').val(selected);
                }
           
        });
//        var datepickerOpts = {
//            dateFormat: 'yy-mm-dd',
//            showAnim: 'fadeIn',
//            changeMonth: true,
//            changeYear: true,
//            numberOfMonths: 1,
//            showButtonPanel: true,
//            onSelect: function(selectedDate) {
//                var option = $(this).hasClass('datepicker_start_date') ? "minDate" : "maxDate";
//                var instance = $(this).data("datepicker");
//                var date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings);
//                dates.not(this).not('#recurrence_end').datepicker("option", option, date);
//            }
//        };
//        var dates = $("#EventStartDate, #EventEndDate, .datepicker_trigger").datepicker(datepickerOpts);




//                $('.datepicker_trigger').datepicker({
//                    format: "yyyy-mm-dd",
//                    forceParse: false
//                });





//                $('.fix_dropdown_position').on('show', function(event, dropdownData) {
//                    $(dropdownData).css({'top': 0, 'left': 0});
////                    console.log(dropdownData);
//                }).on('hide', function(event, dropdownData) {
//                    console.log(dropdownData);
//                });
    });



</script>
<script>
    $(document).ready(function() {
        $('#loginin-btn,#cus_login').hover(function() {
            $('#cus_login').show();
        }, function() {
            $('#cus_login').hide();
        });
    })
</script>
</body>
</html>